package com.cct.digitalarchapi.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cct.digitalarchapi.pojo.DigitalArchMain;
import com.cct.digitalarchapi.pojo.RootList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface RootListMapper  extends BaseMapper<RootList> {

     String qryHaveManager(@Param("username") String username);

     RootList qryManager(@Param("username") String username);

     void addManager(RootList rootList);

     void deleteManager(@Param("username") String username);

     IPage<RootList> qryAllManager(IPage<RootList> page);

     void updatePasswd(@Param("username") String username,@Param("passwd") String passwd);

     void updateManager(RootList rootList);

     String qryHaveRoleUser(@Param("roleId") int roleId);

}
